package org.graduation.model.common.project;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.graduation.model.common.user.User;

import java.util.Date;

@Data
@TableName("project_user_table")
public class ProjectUserTable {
    @TableField(value = "u_id")
    private Integer uid;
    @TableField(value = "p_id")
    private Long pid;
    private Date created;

    public ProjectUserTable() {
    }

    public ProjectUserTable(Project project, User user) {
        this.pid = project.getPId();
        this.uid = user.getUid();
    }
}
